suite("slice-args", function () {
    "use strict";

    require("./slice-args");
    var assert = require("assert");

    test("returns all arguments if no start specified", function () {
        (function () {
            var args = Function.sliceArgs(arguments);
            assert(args instanceof Array);
            assert(args.length === 3);
            assert(args[0] === 1);
            assert(args[1] === 2);
            assert(args[2] === 3);
        })(1, 2, 3);
    });

    test("returns slice of arguments", function () {
        (function () {
            var args = Function.sliceArgs(arguments, 1);
            assert(args instanceof Array, "array");
            assert(args.length === 2, "length");
            assert(args[0] === 2);
            assert(args[1] === 3);
        })(1, 2, 3);
    });
});
